﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BankClient.master" AutoEventWireup="true"
    CodeFile="WithDraw.aspx.cs" Inherits="WithDraw" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="Scripts/impromptu/impromptu.css" rel="stylesheet" type="text/css" />

    <script src="Scripts/impromptu/jquery.js" type="text/javascript"></script>

    <script src="Scripts/impromptu/jquery-impromptu.2.6.min.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="right" runat="Server">
    <h3>
        Rút tài khoản</h3>
    <br />
    <table style="width: 100%;" cellspacing="10">
        <tr>
            <td style="width: 172px">
                Chọn tài khoản muốn rút
            </td>
            <td>
                <asp:DropDownList ID="ddlAccount" runat="server" DataTextField="AccountNumber" DataValueField="AccountNumber"
                    Height="20px" Width="180px" AutoPostBack="True">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 172px">
                Nhập số tiền muốn rút
            </td>
            <td>
                <asp:TextBox ID="txtMount" runat="server" Width="175px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rq1" runat="server" ControlToValidate="txtMount"
                    Display="None" ErrorMessage="Bạn chưa nhập số tiền cần rút"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="regx1" runat="server" ErrorMessage="Số tiền bạn nhập phải lớn hơn 0"
                    ControlToValidate="txtMount" Display="None" ValidationExpression="^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 172px">
            </td>
            <td>
                <div style="margin-left: 15px"><asp:ValidationSummary ID="ValidationSummary1" runat="server" Height="19px" Width="249px" /></div>
            </td>
        </tr>
        <tr>
            <td style="width: 172px">
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnWithDraw" runat="server" Text="Rút tiền khỏi tài khoản" OnClick="btnWithDraw_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
